
RPGine v1.0
    by
Matthew Hart
------------


**********
*FEATURES*
**********

- Accurate collision detection. (not coordinate based)
- Unlimited maps with unlimited unique graphics
- Character interaction with multiple choice answers
- Easy to use interface
- Object interaction
- Flexible scripting engine
- Fast graphics routines thanks to the FBgfxlib  :)				xFuture Graphics Libraryx
- Turn based battles with fast action
- Completely customizable





*******
*NOTES*
*******



CONDITIONS
----------
If on checked conditions you dont want anything to happen then
set tag$ to NULL
e.g.
	CHECK,100,EQ,0,NULL

In this case, if flag 100 does not equal 0 then end reading the script.




DIRECTIONS
----------
The character directions are as follows

0 = Up
1 = Down
2 = Left
3 = Right



FLAGS
-----

There are currently 500 available flags

Flag 0 will be used as a gold/money counter.
Flag 1 will be used for the main plot sequence advancer



CHOICES
-------
On-Screen	CHOSE value
   1st		    0
   2nd		    1
   3rd		    2

If you want just 2 choices, leave t3$ as ""
e.g.     
	CHOICE,"Yes.","No.",""
	CHOSE,0,SAIDYES
	CHOSE,1,SAIDNO


**************
*COMMAND LIST*
**************


TAGS
----
TAG,name$		- sets a tag with ID name$
ENDTAG			- indicates end of current tag
TAG,EXITUP		- script when player leaves top of map
TAG,EXITDOWN		- script when player leaves bottom of map
TAG,EXITLEFT		- script when player leaves left of map
TAG,EXITRIGHT		- script when player leaves right of map
TAG,ACTION		- script run when player activates something, contains CHECKACTION, IFTALK commands



SPEECH
------
SAY,t1$,t2$,t3$		- puts text on screen and waits for space
CHOICE,t1$,t2$,t3$	- puts upto 3 choices on the screen, uses up,down and space
CHOSE,n,tag$		- goes to TAG tag$ if n is chosen (n = 0,1,2)
LOOKAT,c1,c2		- makes character c1 look at character c2



FLAGS
-----
CHECK,n1,condition$,v,tag$	- checks flag n1 with value v, condition$ = EQ, GT, LT, NE, if false goes to TAG tag$
ADDTOFLAG,n,v			- adds v to flag n, v can be negative
SETFLAG,n,v			- sets flag n to v



MAPS
----
CHANGEMAP,map$,x,y,d		- loads map map$ and puts player at x,y with direction d



ACTION
------
CHECKACTION,x,y,tag$		- goto TAG tag$ if object at x,y (to map) is activated, must be in "TAG,ACTION"



CHARACTERS
----------
LOADCHAR,n,x,y,d,s		- creates in slot n a character at x,y with direction d using charinfo s, only if the
 				  character is not dead.
MOVECHAR,n,dis,d		- moves character n a distance of dis in direction d
DELCHAR,n			- clears character slot n
IFTALK,n,tag$			- goes to TAG tag$ if player talks to character n, must be in "TAG,ACTION"
ROAMCHAR,n			- makes character n roam around
CHARDIR,n,d			- Makes char n face direction d
FIGHT,n1,n2			- Make character n1 fight character n2
OUTCOME,n,tag$			- on outcome n goto TAG tag$ (0 = victory, 1 = ran away)











